import listBuilder from "@/comps/list/listBuilder";

/*
lb.add("sn","单据编号",80)
lb.add("title","单据主题",80)
lb.add("status","状态",80)
lb.add("isConfirm","是否生效",80)
lb.add("isCancel","是否取消",80)
lb.add("isClose","是否关闭",80)
lb.add("formAt","制单时间",80)
lb.add("confirmAt","生效时间",80)
lb.add("needAt","需求时间",80)
lb.add("formEmp","制单人",80)
lb.add("createEmp","创建人",80)
lb.add("needEmp","需求人",80)
lb.add("needDept","需求部门",80)
lb.add("note","备注",80)

*/
export default function () {
    let lb = listBuilder()
    lb.addAction(80).setAlignCenter()
    lb.add("sn","单据编号",220).setCopy()
    lb.add("title","单据主题",220)
    lb.add("status","状态",110).setListIsObjectName()
    lb.add("approvalStage","评审环节",120)
    lb.add("approvalSate","评审状态",180)
    lb.add("needEmp","需求人",180).setListIsObjectName()
    lb.add("needDept","需求部门",180).setListIsObjectName()
    lb.add("needAt","需求时间",120)
        .setListIsDate()
    lb.add("isLock","是否锁定",80).setListIsSwitch()
    lb.add("isConfirm","是否生效",80).setListIsSwitch()
    lb.add("isCancel","是否取消",80).setListIsSwitch()
    lb.add("isClose","是否关闭",80).setListIsSwitch()
    lb.add("confirmAt","生效时间",120)
        .setListIsDate()
    lb.add("note","备注",180)
    lb.add("formAt","制单时间",120)
        .setListIsDate()
    lb.add("formEmp","制单人",180).setListIsObjectName()
    lb.add("createEmp","创建人",180).setListIsObjectName()
    lb.add("id","#",80)
    return lb.headers
}